/*
 * Entity.java
 * 
 *  author: Daniel Rudigier
 *    date: 26.12.2008
 * 
 * 
 */
package at.syncme.framework;

import de.enough.polish.io.Externalizable;

/**
 * entities are objects that can be serialized and transferred to other nodes
 * 
 * @author Daniel Rudigier
 */
public abstract class Entity implements Externalizable {
    private static int ID_COUNTER;
    
    private int entityId = ID_COUNTER++;
    

    /**
     * provide a default constructor for j2mepolish serialization
     */
    protected Entity() {
        super();
    }
    
    /**
     * @return entityId
     */
    public int getEntityId() {
        return entityId;
    }

}
